<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
	<style type="text/css">
		*{
			margin: 0;
			padding: 0;
		}
        /*	1.px	*/
        div{
/*        	width: 200px;*/
/*        	height: 200px;*/
        }
        /*  2.vw vh ==> 占窗口的百分比 
            vw：view width  1vw = 视口宽度的1%  100vw就是整个视口的宽度
            vh：view height 1vw = 视口高度的1%

          */
        div{
/*        	width: 100vw;*/
/*        	height: 100vh;*/
        	background: pink;
        }
       /*    
           3.父元素的百分比 %
         
           */
        html{
        	height: 100%;
        }
         body{
        	height: 100%;
        }
        div{
        	width:100% ;
        	height:100% ;
        	background: skyblue;
        }
	</style>
</head>
<body>
      <div></div>
</body>
</html>